package com.weds.frame.common.entity;

import com.weds.frame.common.constants.HttpReturnRnums;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

import java.io.Serializable;

/**
 * Description:
 * Author: LiuWenQing
 * Datetime: 2021/6/11
 */
@Data
@ApiModel("分页返回对象")
public class TableDataInfo<T> implements Serializable {

    private static final long serialVersionUID = 1L;

    @ApiModelProperty(value = "状态码", notes = "0是成功,其他都是失败")
    private int code = HttpReturnRnums.Success.value();

    @ApiModelProperty(value = "状态码描述信息", notes = "例如失败，参数错误")
    private String msg = HttpReturnRnums.Success.desc();

    @ApiModelProperty(value = "具体的业务数据", notes = "")
    private Object data;
}
